
function closePc(that){
	//#ifdef H5
	if (navigator.userAgent.indexOf('Mobile') <= 0) {
	    uni.showModal({
	    	title:'提示',
	    	content:'请使用手机设备打开系统,以免发生系统不兼容',
	    	cancelText:'取消',
	    	confirmText:'确定',
	    	success(res){
	    		if(res.cancel){
					window.open("about:blank", "_top").close();
	    		}else if(res.confirm){
					window.open("about:blank", "_top").close();
	    		}
	    	}
	    })
	}
	//#endif
}

module.exports = {
    closePc
};